package com.lagou.model;

import java.io.Serializable;
import java.util.Arrays;

public class Question implements Serializable {

    private static final long serialVersionUID = -7950001405393552039L;
    private String title;
    private String[] option;
    private String answer;

    public Question() {
    }

    public Question(String title, String[] option, String answer) {
        this.title = title;
        this.option = option;
        this.answer = answer;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String[] getOption() {
        return option;
    }

    public void setOption(String[] option) {
        this.option = option;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public String toString() {
        return "Question{" +
                "title='" + title + '\'' +
                ", option=" + Arrays.toString(option) +
                ", answer='" + answer + '\'' +
                '}';
    }
}
